package com.glory.brepda.activity.mfg;

import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.glory.brepda.R;
import com.glory.brepda.base.BaseActivity;
import com.glory.brepda.callback.CustomDialogEntityCallBack;
import com.glory.brepda.entity.BomInfoEntity;
import com.glory.brepda.entity.RepairFromListEntity;
import com.glory.brepda.entity.response.BaseResponseBean;
import com.glory.brepda.utils.NetUtils;
import com.google.gson.JsonObject;
import com.google.gson.reflect.TypeToken;
import com.lzy.okgo.model.Response;
import com.pda.platform.ui.ui_pdaplatform.callback.FreeUI_EntityCallBack;
import com.pda.platform.ui.ui_pdaplatform.view.FreeUI_ClearEditText;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Collections;
import java.util.Date;
import java.util.List;

import butterknife.BindView;

public class BomInfoCheckActivity extends BaseActivity {
    @BindView(R.id.tvMaterialDesc)
    TextView tvMaterialDesc;
    @BindView(R.id.tvMaterialType)
    TextView tvMaterialType;
    @BindView(R.id.llMain)
    LinearLayout llMain;
    @BindView(R.id.tvUomId)
    TextView tvUomId;
    @BindView(R.id.tvUnitQty)
    TextView tvUnitQty;
    @BindView(R.id.tvCustomerCode)
    TextView tvCustomerCode;
    @BindView(R.id.tvCustomerDesc)
    TextView tvCustomerDesc;
    @BindView(R.id.tvWorkStepDesc)
    TextView tvWorkStepDesc;

    private BomInfoEntity.ResultBean result;


    @Override
    protected int getLayoutResId() {
        return R.layout.activity_bom_info_check;
    }



    @Override
    protected void initView() {
        Bundle bundle = getIntent().getExtras();
        result = (BomInfoEntity.ResultBean)bundle.getSerializable("BOMINFO");
        setMainLayout(llMain);

        tvMaterialDesc.setText(result.getMATERIAL_DESC());
        tvMaterialType.setText(result.getMATERIAL_TYPE());
        tvUomId.setText(result.getUOM_ID());
        tvUnitQty.setText(result.getUNIT_QTY());
        tvCustomerCode.setText(result.getVENDOR_CODE());
        tvCustomerDesc.setText(result.getVENDOR_DESC());
        tvWorkStepDesc.setText(result.getWORK_STEP_DESC());
    }

    @Override
    protected void initData() {

    }




}
